package experiment_2.UML;

public class AnimalTest {
	public static void main(String[] args){
		Dog d = new Dog();
		d.setColor("Yellow");
		getInfo(d);
		
		Cat c = new Cat();
		c.setColor("Black");
		getInfo(c);
	}
	public static void getInfo(Dog d){
		System.out.println(d.toString());
	}
	public static void getInfo(Cat c){
		System.out.println(c.toString());
	}
}
